const mockQuery = {
  code: 'ok',
  message: '',
  data: {
    list: [
      {
        key: '1',
        id: 1,
        supplierCode: 'LD001',
        companyName: '瀚森乐达',
        type: '海运',
        productCode: 'S000000001',
        productName: '海运整柜',
        productImage: 'file://xxxxss.img',
        originPrice: '$399.0',
        salePrice: '$300',
        saleInventory: '不限',
        productStatus: '已上架',
        failReason: '',
      },
      {
        key: '2',
        id: 2,
        supplierCode: 'LD001',
        companyName: '瀚森乐达',
        type: '海运',
        productCode: 'S000000002',
        productName: '海运散货',
        productImage: 'file://xxxxss.img',
        originPrice: '$399.0',
        salePrice: '$300',
        saleInventory: '不限',
        productStatus: '已上架',
        failReason: '',
      },
      {
        key: '3',
        id: 3,
        supplierCode: 'LD001',
        companyName: '瀚森乐达',
        type: '海运',
        productCode: 'S000000003',
        productName: '整柜双清',
        productImage: 'file://xxxxss.img',
        originPrice: '$399.0',
        salePrice: '$300',
        saleInventory: '不限',
        productStatus: '已上架',
        failReason: '',
      },
      {
        key: '4',
        id: 4,
        supplierCode: 'LD001',
        companyName: '瀚森乐达',
        type: '海运',
        productCode: 'S000000003',
        productName: '散货双清',
        productImage: 'file://xxxxss.img',
        originPrice: '$399.0',
        salePrice: '$300',
        saleInventory: '不限',
        productStatus: '已上架',
        failReason: '',
      },
    ],
    pagination: {
      currency: 1,
      total: 20,
      pageSize: 20,
    },
  },
};

const mockCreate = {
  code: 'ok',
  message: '',
  data: {},
};

const mockUpdate = {
  code: 'ok',
  message: '',
  data: {},
};

const mockRemove = {
  code: 'ok',
  message: '',
  data: {},
};

export default {
  'GET /api/product/query': mockQuery,
  'POST /api/product/create': mockCreate,
  'POST /api/product/update': mockUpdate,
  'POST /api/product/remove': mockRemove,
};
